<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/system/include/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>menu</title>
<style type="text/css">
<!--
body {
	background-image: url(${ctx}/images/top5.gif);
	background-repeat: repeat-x;
	background-color: #daeaf6;
}
body,td,th {
	font-size: 12px;
	color: #2183b4;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #1e75b6;
}
a:visited {
	text-decoration: none;
	color: #1e75b6;
}
a:hover {
	text-decoration: underline;
	color: #1e75b6;
}
a:active {
	text-decoration: none;
	color: #1e75b6;
}
-->
</style>
<script type="text/javascript">
	function getSubMenu(cid)
		{
		var resrestr="";
		var p=0;
		    p=parseInt(cid);
		 switch(p)
			 {
			 <c:forEach var="curUserMenu" items="${userMenus}">
			 case ${curUserMenu.functionId}:
				 resrestr=resrestr+"<ul>";
				 <c:forEach var="curSubUserMenu" items="${curUserMenu.sublist}">  		
		  				resrestr=resrestr+"<li>";
						resrestr=resrestr+"<a href=\"${ctx}${curSubUserMenu.funKey}\"  target=\"mainFrame\">";
						resrestr=resrestr+"${curSubUserMenu.funName}</a></li>";   		
	  			 </c:forEach>
				 resrestr=resrestr+"</ul>"; 
			  break;
			</c:forEach>	  
			 default:
			 	resrestr=resrestr+"default"; 
			 break;
			 }
		document.getElementById("slider").innerHTML=resrestr;
	}
</script>
</head>
<body onload="getSubMenu('${param.parentId}');">
<div class="index_menu" >
<div id="slider"></div>
 </div>
</body>
</html>